package cn.lml.lession.user.controller;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/hello")
public class HelloController {
	private final static Logger logger = LoggerFactory.getLogger(HelloController.class);
	
	@RequestMapping(value="/{name}", method = RequestMethod.GET)
	public String hello(@PathVariable("name") String username){
		logger.debug("访问路径：/user/"+username);
		logger.info("hello "+username);
		return "hello "+username;
	}

	
	
}
